<include file="Public/header" />
<title>添加账册</title>
</head>
<body>
<div class="pd-20">
<form class="" name="form" id="form" action="__URL__/add/" method="get">
	<table class="table table-border table-bordered table-bg">

		<tbody>
			<tr class="text-c">
				<td width="15%" class="text-r" style="background-color:#f5f5f5">公司编号</td>
				<td class="text-l">
					<input type="text" name="no" class="input-text" value="<{$detail.no}>">
				</td>
				<td width="15%" class="text-r" style="background-color:#f5f5f5">公司名称</td>
				<td class="text-l">
					<input type="text"  class="input-text" name="name" value="<{$detail.name}>">
				</td>						
			</tr>
			<tr class="text-c">
					<td width="15%" class="text-r" style="background-color:#f5f5f5">客户姓名：</td>
					<td class="text-l">
						<input type="text" class="input-text user_name" value="" placeholder="客户姓名" name="user_name">
					</td>
					<td width="15%" class="text-r" style="background-color:#f5f5f5">省：</td>
					<td class="text-l" style="width:35%;">
						<input type="text" class="input-text" value="" placeholder="省" name="province">
					</td>						
			</tr>
			<tr class="text-c">
					<td width="15%" class="text-r" style="background-color:#f5f5f5">市：</td>
					<td class="text-l">
						<input type="text" class="input-text user_name" value="" placeholder="市" name="city">
					</td>
					<td width="15%" class="text-r" style="background-color:#f5f5f5">区/县：</td>
					<td class="text-l" style="width:35%;">
						<input type="text" class="input-text" value="" placeholder="区/县" name="area">
					</td>						
			</tr>
			<tr class="text-c">
					<td width="15%" class="text-r" style="background-color:#f5f5f5">客户详细地址：</td>
					<td class="text-l" style="width:35%;">
						<input type="text" class="input-text" value="" placeholder="客户详细地址" name="user_address">
					</td>
					<td width="15%" class="text-r" style="background-color:#f5f5f5">身份证：</td>
					<td class="text-l" style="width:35%;">
						<input type="text" class="input-text" value="" placeholder="身份证" name="user_idcard">
					</td>	
										
			</tr>
			<tr class="text-c">
					<td width="15%" class="text-r" style="background-color:#f5f5f5">联系电话：</td>
					<td class="text-l">
						<input type="text" class="input-text" value="" placeholder="联系电话" name="user_phone">
					</td>
					<td width="15%" class="text-r" style="background-color:#f5f5f5"></td>
					<td class="text-l">
						
					</td>					
			</tr>
		</tbody>
	</table>
	

	<input type="button" class="btn btn-primary radius mt" id="b_add" value="添加">
</form>
</div>
<script type="text/javascript">
    $(function(){
		/*保存计划入库单数据*/
        $("#b_add").click(function(){
			$.ajax({
                type: 'POST',
                data: $("#form").serialize(),
                url: "<{:U('add_company')}>",
                success:function(data){
                    layer.msg(data.info,function(){
						if(data.status==0){
							return false;
						}
						parent.window.location.href =parent.window.location.href;
					});
                }
            })
            
        });

    })
</script>
</body>
</html>